package com.xwt.pattern.decorator;

/**
 * Author:  Steven Xiao
 * Description:装饰类，我要把我的成绩单装饰一下
 * Date:  2016/3/23
 * Time:  10:57
 */
public abstract class Decorator extends SchoolReport{
    //首先我要知道是哪个成绩单
    private SchoolReport sr;

    //构造函数，传递成绩单过来
    public Decorator(SchoolReport sr) {
        this.sr = sr;
    }

    @Override
    public void report() {
        this.sr.report();
    }

    @Override
    public void sign(String name) {
        this.sr.sign(name);
    }
}
